#!/usr/bin/python3

###################################
# 算术运算符
print(5//2) # 向下取整
print(2**4) # 乘方
print()

###################################
# 逻辑运算符
a, b = True, False
if a and b:
    print('a&&b')
if a or b:
    print('a||b')
if not b:
    print('!b')
print()

###################################
# 成员运算符
list = ['a', 'b']
if 'a' in list:
    print('a in list')
if 'c' not in list:
    print('c not in list')
print()

###################################
# 身份运算符
list1 = ['a', 'b']
list2 = ['a', 'b']
print(list1 is list2)
print(id(list1) == id(list2))
print(list1 is not list2)
print(id(list1) != id(list2))
print()

